package com.bytezero.login_test.service;

import com.bytezero.login_test.bean.BaseBean;
import com.bytezero.login_test.bean.Goods;

import java.util.List;

import io.reactivex.rxjava3.core.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author Bytezero_zhenglei!
 * @package com.bytezero.login_test.service
 * @fileName
 * @data 2022/1/27 16:22
 * @description
 * @TODO
 * @email 420498246@qq.com
 */
public interface GoodsService {
    @GET("edu-lance/edu-lance.github.io/master/goods_list")
    Flowable<BaseBean<List<Goods>>> getGoods();

    @GET("edu-lance/edu-lance.github.io/master/goods_detail")
    Flowable<BaseBean<List<Goods>>> getGoodDetail(@Query("goodsId") int goodsId);

}
